package com.example.demo.model.vo;


import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import java.util.List;

/**
 * Created by Lx on 2018/6/27.
 */
@Data
public class LegalPersonAddVo {
    @NotBlank(message = "新增失败，name不能为空")
    private String name;
    private String code;
    private Integer status;
    private Integer userId;
    @Valid
    @NotEmpty(message = "新增失败，plantList不能为空")
    List<PlantAddVo> plantList;
}
